Loop Code Recur Home
Category

Functional Programming

Stack-Safe Recursion Without the TCO Fairy Tale

Tail-call optimization is a lovely promise that your runtime may or may not keep. Comparing trampolines, explicit stacks, and plain iterative rewrites in JavaScript, Python, and Clojure — and when each one is actually worth the tradeoff.

Nov 23, 2026